package com.yidu.DailyFinalTreatment.service.impl;

import com.yidu.DailyFinalTreatment.entity.SecuritiesNetWorth;
import com.yidu.DailyFinalTreatment.mapper.SecuritiesNetWorthMapper;
import com.yidu.DailyFinalTreatment.service.SecuritiesNetWorthService;
import com.yidu.StockControl.service.SecurityInventorsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class SecuritiesNetWorthServiceImpl implements SecuritiesNetWorthService {
    @Autowired
    SecuritiesNetWorthMapper securitiesNetWorthMapper;
    @Override
    public List<SecuritiesNetWorth> selectSecuritiesNetWorth(String dateTime, String fundId, String dateTimeTwo) {
        List<SecuritiesNetWorth> securitiesNetWorths = securitiesNetWorthMapper.selectSecuritiesNetWorth(dateTime, fundId, dateTimeTwo);
        return securitiesNetWorths;
    }

    @Override
    public List<SecuritiesNetWorth> selectDebentureInterestNetWorth(String dateTime, String fundId, int type) {
        List<SecuritiesNetWorth> securitiesNetWorths = securitiesNetWorthMapper.selectDebentureInterestNetWorth(dateTime, fundId, type);
        return securitiesNetWorths;
    }

    @Override
    public List<SecuritiesNetWorth> selectSecuritiesClearingNetWorth(String dateTime, String fundId, int type, int flag) {
        List<SecuritiesNetWorth> securitiesNetWorths = securitiesNetWorthMapper.selectSecuritiesClearingNetWorth(dateTime, fundId, type, flag);
        return securitiesNetWorths;
    }


}
